<html>
<head>
    
    <?php
        // Here we setup the default js and css, pages that need special link should do so by suing the 
        // view helpers: headLink appendStylesheet or headScript appendFile
        $baseUrl = $this->baseUrl();
        
        // Jquery and plugins
        $this->headScript()->appendFile($baseUrl . 'js/jquery/jquery-1.3.2.min.js');
        $this->headScript()->appendFile($baseUrl . 'js/jquery/jquery.autocomplete-1.4.2.js');
        $this->headScript()->appendFile($baseUrl . 'js/jquery/jquery.domec.min-0.3.3.js');
        $this->headScript()->appendFile($baseUrl . 'js/jquery/jquery.createdomnodes-v1.1.js');
        $this->headScript()->appendFile($baseUrl . 'js/jquery/jquery.datepick.min.js');
        $this->headScript()->appendFile($baseUrl . 'js/jquery/fullcalendar.min.js');
        
        
        
        // Custom js
        $this->headScript()->appendFile($baseUrl . 'js/pldkp/generic.js');
        $this->headScript()->appendFile($baseUrl . 'js/pldkp/Frames.js');
        $this->headScript()->appendFile($baseUrl . 'js/pldkp/AutoSelector.js');
        
        // Wowhead js
        $this->headScript()->appendFile('http://static.wowhead.com/widgets/power.js');
        
        // Style sheets
        $this->headLink()->appendStylesheet($baseUrl . 'css/site.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/frames.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/topmenu.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/shaded.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/form.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/jqac.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/jquery.datepick.css');
        $this->headLink()->appendStylesheet($baseUrl . 'css/fullcalendar.css');
    ?>
    
    
    <?= $this->headTitle() ?>
    
    <?= $this->headScript() ?>
    
    <?= $this->headStyle() ?>
    
    <?= $this->headLink() ?>  
      
    <script type="text/javascript">
        // Declare some globals that can be used in various scipts
        var pldkpPaths = {
            "base"  : "<?= $this->baseUrl();?>",
            "icons" : "<?= $this->baseUrl();?>images/icons/",
            "site"  : "<?= $this->baseUrl();?>images/site/"
        }
    </script>
       
</head>
<body>
    
    <div id='menu_border_top'></div>
    <div id='menu_blue'>
    
        <div id="navcontainer">
        <ul id="navlist">
        <li>
            <a href="<?= $this->route("index",""); ?>">
                Front
            </a>
        </li>
        <li><a href="<?= $this->route("raids", "") ?>">Raids</a></li>
        <li><a href="<?= $this->route("dkp", "") ?>">DKP</a></li>
        <li><a target="_blank" href="http://phoenixlegends.forumotion.com/">Forum</a></li>
        <?php      
            
            if ($this->isUserAllowed(array('controller' => 'groups', 'action' => 'index'))) {
                echo "<li><a href=\"" . $this->route("groups", "") . "\">Groups</a></li>";
            }
            
            if (Zend_Auth::getInstance()->hasIdentity()) {
                echo "<li><a href=\"" . $this->route("profile", "") . "\">My Profile</a></li>";
                echo "<li><a href=\"" . $this->route("auth", "logout") . "\">Logout</a></li>";
            }
            else {
                echo "<li><a href=\"" . $this->route("users", "create") . "\">Create User</a></li>";
                echo "<li><a href=\"" . $this->route("auth", "login") . "\">Login</a></li>";
            }
        ?>
        </ul>
        
        </div>
    
    </div>
    <div id='menu_border_bottom'></div>
    
    <table id='page-layout'>
        <tr>
            <td colspan='3' id='page-top'></td>
        </tr>
        <tr>
            <td id='page-left'></td>
            <td id='page-center'>
                
                <div id='center'>
                
                <?php echo $this->layout()->content; ?>
                    
                </div>
                
            </td>
            <td id='page-right'></td>
        </tr>
        <tr>
            <td colspan='3' id='page-bottom'></td>
        </tr>
    </table>

</body>
</html>